export function getRoutesMeta(routes) {
  const metaList = [];
  routes.forEach((route) => {
    if (route.meta) {
        metaList.push(route.meta);  
    }
    if (route.children){
        metaList.push(getRoutesMeta(route.children));
    }
  });
  return metaList;
}